package book;

public interface BookDao {
	//1.添加
	int insert(Book book);
	//2.修改
	int update(Book book);
	//3.根据bookId借书
	int rent(int bookId);
	//4.根据bookId还书
	int back(int bookId);
	//5.根据bookId查询图书
	Book selectById(int bookId);
	//6.查询所有图书
	Book[] selectAll();
	//7.根据借出次数从高到底排序
	Book[] sortByRentTime();
}
